package com.example.dagger2one.module;

import com.example.dagger2one.model.ICommonView;
import com.example.dagger2one.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

/**
 * @作者: njb
 * @时间: 2019/7/19 10:18
 * @描述:
 */
@Module
public class CommonModule {
    private ICommonView iCommonView;

    public CommonModule(ICommonView iCommonView){
        this.iCommonView = iCommonView;
    }

    @Provides
    @ActivityScope
    public ICommonView provideICommonView(){
        return this.iCommonView;
    }
}
